// pages/weddingMan/team/team.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    teamList: Array
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    toHome(e){
      const { id, follow} = e.currentTarget.dataset
      
      let url = '/pages/weddingMan/personal/personal'
      if(id){
        url = `${url}?id=${id}`
      }
      else{
        return 
      }
      
      wx.navigateTo({
        url,
      })
    },

    toTeamHome(e){
      const { id} = e.currentTarget.dataset
      
      let url = '/pages/weddingMan/team/team'
      if(id){
        url = `${url}?id=${id}`
      }
      else{
        return 
      }
      
      wx.navigateTo({
        url,
      })
    }
  }
})
